package order.service.model;

import lombok.Data;

import java.util.Date;

@Data
public class OrderInfo {
//    -- 订单表
//    DROP TABLE IF EXISTS order_detail;
//    CREATE TABLE order_detail (
//        `id` INT NOT NULL AUTO_INCREMENT COMMENT '订单id',
//        `user_id` BIGINT ( 20 ) NOT NULL COMMENT '用户ID',
//            `product_id` BIGINT ( 20 ) NULL COMMENT '产品id',
//            `num` INT ( 10 ) NULL DEFAULT 0 COMMENT '下单数量',
//            `price` BIGINT ( 20 ) NOT NULL COMMENT '实付款',
//            `delete_flag` TINYINT ( 4 ) NULL DEFAULT 0,
//            `create_time` DATETIME DEFAULT now(),
//        `update_time` DATETIME DEFAULT now(),
//    PRIMARY KEY ( id )) ENGINE = INNODB DEFAULT CHARACTER
//            SET = utf8mb4 COMMENT = '订单表';
    Integer id;
    Long userId;
    Long productId;
    Integer num;
    Long price;
    Date updateTime;
    Date createTime;
    ProductInfo productInfo;
}
